package com.itheima.service;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

/**
 * 会员接口
 */
public interface MemberService {
    /***
     * 根据电话号码判断会员是否存在
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /***
     * 增加用户
     * @param member
     */
    void add(Member member);

    /***
     * 根据月份查询会员数量
     * @param months
     * @return
     */
    List<Integer> findMemberCountByMonth(List<String> months);


    List<Map<String, Object>> getMemberGenderReport();

    List<Map<String, Object>> getMemberAgeRangeReport();
}
